.debate-panel {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.debate-start,
.position-selection {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.debate-start h2,
.position-selection h2 {
  font-size: 2rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.description {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
}

.start-button,
.start-debate-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.start-button:hover:not(:disabled),
.start-debate-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.start-button:disabled,
.start-debate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.question-preview {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.question-preview h3 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.1rem;
}

.question-preview p {
  color: #333;
  line-height: 1.8;
  margin: 0;
}

.question-options-preview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.question-options-preview h4 {
  margin: 0 0 0.5rem 0;
  color: #667eea;
  font-size: 1rem;
}

.question-options-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-options-preview li {
  padding: 0.5rem 0;
  color: #555;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}

.question-options-preview li:last-child {
  border-bottom: none;
}

.position-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.position-button {
  padding: 1rem 2rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.position-button:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.position-button.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.debate-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.debate-header {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.debate-header h2 {
  margin: 0;
  color: #667eea;
  font-size: 1.5rem;
}

.debate-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.position-badge,
.round-badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.position-badge {
  background: #e3f2fd;
  color: #1976d2;
}

.round-badge {
  background: #fff3e0;
  color: #f57c00;
}

.end-debate-button {
  padding: 0.5rem 1rem;
  border: 2px solid #f44336;
  background: white;
  color: #f44336;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.end-debate-button:hover:not(:disabled) {
  background: #f44336;
  color: white;
}

.end-debate-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.question-display {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.question-display h3 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.1rem;
}

.question-display p {
  color: #333;
  line-height: 1.8;
  margin: 0;
}

.question-options {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.question-options h4 {
  margin: 0 0 0.5rem 0;
  color: #667eea;
  font-size: 1rem;
}

.question-options ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.question-options li {
  padding: 0.5rem 0;
  color: #555;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}

.question-options li:last-child {
  border-bottom: none;
}

.debate-history {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-height: 500px;
  overflow-y: auto;
}

.debate-history h3 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.1rem;
  position: sticky;
  top: 0;
  background: white;
  padding-bottom: 0.5rem;
  z-index: 1;
}

.empty-history {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.empty-history .hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.history-item {
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.round-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.round-number {
  font-weight: 600;
  color: #667eea;
  font-size: 0.9rem;
}

.round-time {
  font-size: 0.85rem;
  color: #999;
}

.user-argument,
.ai-response {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
}

.user-argument {
  background: #f0f7ff;
  border: 1px solid #e3f2fd;
}

.ai-response {
  background: #fff8f0;
  border: 1px solid #fff3e0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.user-avatar,
.ai-avatar {
  font-size: 1.2rem;
}

.message-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #667eea;
}

.message-content {
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
}

.argument-input-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.argument-input-section label {
  display: block;
  width: 100%;
}

.argument-input-section strong {
  display: block;
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 1rem;
}

.argument-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.3s ease;
  line-height: 1.6;
}

.argument-input:focus {
  outline: none;
  border-color: #667eea;
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.char-count {
  font-size: 0.85rem;
  color: #999;
}

.submit-argument-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-argument-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-argument-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.evaluation-container {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.evaluation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.evaluation-header h2 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.8rem;
}

.evaluation-summary {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
}

.evaluation-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.score-card {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid #e3f2fd;
}

.score-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 2.5rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem;
}

.score-value.high {
  color: #4caf50;
  background: #e8f5e9;
}

.score-value.medium {
  color: #ff9800;
  background: #fff3e0;
}

.score-value.low {
  color: #f44336;
  background: #ffebee;
}

.evaluation-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-section {
  background: #f8f9ff;
  border-radius: 12px;
  padding: 1.5rem;
}

.detail-section h3 {
  margin: 0 0 1rem 0;
  color: #667eea;
  font-size: 1.1rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.detail-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #555;
}

.evaluation-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-button {
  padding: 1rem 2rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-button:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.action-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.action-button.primary:hover {
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
  .debate-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .debate-info {
    width: 100%;
    justify-content: space-between;
  }

  .evaluation-scores {
    grid-template-columns: 1fr;
  }

  .evaluation-details {
    grid-template-columns: 1fr;
  }
}


